//
//  AppDelegate.m
//  微博
//
//  Created by 陈帅府 on 15-3-20.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    //1.自定义log，需要一伐木工框架
    // Standard lumberjack initialization
    [DDLog addLogger:[DDTTYLogger sharedInstance]];
    
    // And we also enable colors
    [[DDTTYLogger sharedInstance] setColorsEnabled:YES];
    

    //2.测试log,只能输出彩色颜色，并不能显示颜色，需要一个插件
    
    DDLogError(@"%s",__func__);
    DDLogWarn(@"%s",__func__);
    DDLogVerbose(@"%s",__func__);
    DDLogInfo(@"%s",__func__);
    DDLogDebug(@"%s",__func__);
    //3.自定义颜色
    [[DDTTYLogger sharedInstance] setForegroundColor:[UIColor greenColor] backgroundColor:[UIColor yellowColor] forFlag:DDLogFlagInfo];
    DDLogInfo(@"%s",__func__);
    //IWLog(@"调试阶段");
    return YES;
}

@end
